// Point3 class built mostly from the Point2 class example code in book appendix

#include "Point3.h"

Point3::Point3()
{
	x = 0.0;
	y = 0.0;
	z = 0.0;
}

Point3::Point3(float dx, float dy, float dz)
{
	x = dx;
	y = dy;
	z = dz;
}

Point3::Point3(Point3& point)
{
	x = point.getX();
	y = point.getY();
	z = point.getZ();
}

void Point3::set(Point3& point)
{
	x = point.getX();
	y = point.getY();
	z = point.getZ();
}

void Point3::set(float dx,float dy,float dz)
{
	x = dx;
	y = dy;
	z = dz;
}

void Point3::setX(float dx)
{
	x = dx;
}

void Point3::setY(float dy)
{
	y = dy;
}

void Point3::setZ(float dz)
{
	z = dz;
}

float Point3::getX()
{
	return x;
}

float Point3::getY()
{
	return y;
}

float Point3::getZ()
{
	return z;
}

